package com.medvalley.tcm.dao;

import com.medvalley.tcm.domain.SleepData;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface SleepDataDao extends CrudRepository<SleepData, Long> {

    SleepData findOneByUserIdAndRecordDate(long userId, String recordDate);

    List<SleepData> findAllByUserId(long userId);
}
